﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mangosoft.DiceCopy.Presentation.Domain.Contracts;
using System.Collections.ObjectModel;
using Mangosoft.DiceCopy.Presentation.Domain.Models;

namespace Mangosoft.DiceCopy.Presentation.Domain.Handlers {
    public class GetAdvertisings {
        readonly IAdvertisingAgent _advertisingAgent;

        public GetAdvertisings(IAdvertisingAgent advertisingAgent) {
            _advertisingAgent = advertisingAgent;
        }

        public ReadOnlyCollection<AdvertisingModel> Execute(bool published) {

            return new ReadOnlyCollection<AdvertisingModel>(_advertisingAgent.GetPublishedAdvertisings(213009));
        }
    }
}
